<template>
  <div class="week">
    <p>周末去哪儿</p>
    <div class="dv">
      <div v-for="item in WImgUrl" :key="item.id">
        <img :src="item.img">
        <div class="pp">
          <p>{{item.title}}</p>
          <p>{{item.article}}</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'week',
    props: {
      WImgUrl: {
        type: Array,
      },
    },
    data() {
      return {
      }
    }
  }
</script>

<style scoped>
  .week>p {
    padding-left: 10px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    background-color: #E4E7EA;
  }

  .dv {
    width: 100%;
  }

  .dv img {
    width: 100%;
    height: auto;
  }

  .dv .pp {
    margin: 10px 0;
  }

  .dv .pp p {
    padding-left: 10px;
    width: 60%;
    height: auto;
    line-height: 20px;
    font-size: 12px;
    overflow-x: auto;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
</style>
